x86 vmx: Accelerate VLAPIC EOI writes
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 5 Aug 2009 13:02:46 +0000 (14:02 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 5 Aug 2009 13:02:46 +0000 (14:02 +0100)
commit77ec53b686ec6e16df4df5095aef2db90b737b91
tree8b42ac14fa81443871cb12cfc63268714f24971d
parent0d22c8d92c6cdc78f8300f55a6360ef9c0bb51a3
x86 vmx: Accelerate VLAPIC EOI writes

Our testing indicates that most apic accesses are eoi writes. This
patch accelerate guest EOI emulation utilizing HW VM Exit
information.

Without this patch, xentrace shows the apci access average tsc costs
is ~7.8k in our case and it down to ~3k with it. We also save 3% cpu
in our case.

From: Yang Zhang <yang.zhang@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/hvm/vmx/vmx.c